import {
	http
} from "@/common/request.js";
//   解除绑定
export function unbind(code) {
	return http.request({
		url: `/wechat/mp/unbind/${code}`,
		method: "put",
	});
}
//   openId绑定账号
export function bind(data) {
	return http.request({
		url: `/wechat/mp/bind`,
		method: "post",
		data: data
	});
}
// 获取字典
export function dict(data) {
	return http.request({
		url: '/system/dict/data/list',
		method: 'get',
		params: data
	})
}
// 微信公众平台login
export function getwxSessionKey(code) {
	return http.request({
		url: `/wechat/mp/login/${code}`,
		method: "get",
		headers: {
			"Content-Type": "application/x-www-form-urlencoded",
		},
	});
}